//
//  NSMutableAttributedString+Extension.swift
//  RockSpace
//
//  Created by 松松 on 2018/9/5.
//  Copyright © 2018年 整物搭链. All rights reserved.
//

import Foundation

extension NSMutableAttributedString{

    //MARK:设置行间距
    public func setLineSpace(_ lineSpace:CGFloat){
        let pragraphStyle = NSMutableParagraphStyle()
        pragraphStyle.lineSpacing = lineSpace
        addAttribute(.paragraphStyle, value: pragraphStyle, range: NSRange.init(location: 0, length: length))

    }

}
